package cn.ds.assets.module.assets.controller.admin.metadataJobInstance.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.ds.assets.framework.common.pojo.PageParam;
import java.time.LocalDate;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.ds.assets.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 元数据管理-元数据采集作业实例 Excel 导出 Request VO，参数和 BaseMetadataJobInstancePageReqVO 是一致的")
@Data
public class BaseMetadataJobInstanceExportReqVO {

    @Schema(description = "主键ID")
    private Long[] ids;

    @Schema(description = "作业主键id,关联assets_metadata_collect_job的id字段", example = "18891")
    private Long jobId;

    @Schema(description = "状态,1:执行中,2:成功,3:失败,4:超时,5:已取消", example = "2")
    private Byte status;

    @Schema(description = "业务日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] businessDate;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "运行时长,单位:秒")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] runtime;

    @Schema(description = "日志")
    private String msg;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "项目空间ID,关联assets_project的id字段", example = "894")
    private Long projectId;

    @Schema(description = "下次执行时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] nextTime;

    @Schema(description = "作业编码,关联assets_metadata_collect_job的job_code字段")
    private String jobCode;

}
